import java.util.Scanner;
public class Yanghui {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int n = reader.nextInt();
			int[][] a = new int[50][50];
			int i,j;
			a[0][10]=1;
			for(j=0;j<n-1;j++){
				System.out.printf(" ");
			}
			System.out.printf("%4d\n",a[0][10]);
			for(i=1;i<n;i++){
				for(j=0;j<n-i-1;j++)
					System.out.printf(" ");
				for(j=10-i;j<10+1;j++){
					a[i][j]=a[i-1][j]+a[i-1][j+1];
					if(j==10)
						System.out.printf("%4d\n",a[i][j]);
					else
						System.out.printf("%4d",a[i][j]);
				}
			}
	}
}